package com.svse.designPattern.behaviour.mediator.impl;

import com.svse.designPattern.behaviour.mediator.service.Colleague;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2020/8/8 22:53
 */
public class ConcreteColleague2 extends Colleague {
    @Override
    public void receive() {
        System.out.println("具体同事类2收到请求。");
    }

    @Override
    public void send() {
        System.out.println("具体同事类2发出请求。");
        mediator.relay(this);
    }
}
